import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

/* Layout */
import Layout from '@/views/layout/Layout'

/** note: submenu only apppear when children.length>=1
 *   detail see  https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
 **/

/**
 * hidden: true                   if `hidden:true` will not show in the sidebar(default is false)
 * alwaysShow: true             f  if set true, will always show the root menu, whatever its child routes length
 *                                if not set alwaysShow, only more than one route under the children
 *                                it will becomes nested mode, otherwise not show the root menu
 * redirect: noredirect           if `redirect:noredirect` will no redirct in the breadcrumb
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
 * meta : {
    roles: ['admin','editor']     will control the page roles (you can set multiple roles)
    title: 'title'               the name show in submenu and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar,
    noCache: true                if true ,the page will no be cached(default is false)
  }
 **/
export const constantRouterMap = [
  { path: '/login', component: () => import('@/views/login/index'), hidden: true },
  { path: '/debug-env', component: () => import('@/views/debug-env'), hidden: true },
  { path: '/authredirect', component: () => import('@/views/login/authredirect'), hidden: true },
  { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true },
  { path: '/401', component: () => import('@/views/errorPage/401'), hidden: true },
  {
    path: '',
    component: Layout,
    redirect: 'dashboard',
    children: [{
      path: 'dashboard',
      component: () => import('@/views/dashboard/index'),
      name: 'dashboard',
      meta: { title: 'dashboard', icon: 'dashboard', noCache: true }
    },
    {
      path: 'notification', component: () => import('@/views/notification'),
      hidden: true,
      name: 'Notification',
      meta: { title: '系统通知' }
    }
    ]
  }

]

export default new Router({
  // mode: 'history', // require service support
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})

export const asyncRouterMap = [

  // {
  //   path: '/erp',
  //   component: Layout,
  //   redirect: '/erp/resource-manage',
  //   name: 'erp',
  //   meta: { title: '本地产品', icon: 'example', roles: ['erp_user', 'admin'] },
  //   alwaysShow: true,
  //   children: [
  //     {
  //       path: 'resource-manage',
  //       component: () => import('@/views/erp/elicink/resourceManage'),
  //       name: 'epr.resourceManage',
  //       meta: { title: '供应商目录', icon: 'resourceManage' }
  //     },
  //     {
  //       path: 'product-manage/:c_id',
  //       component: () => import('@/views/erp/elicink/productManage'),
  //       name: 'erp.productManage',
  //       meta: { title: '本地产品管理' },
  //       hidden: true
  //     },
  //     // { path: 'upload', name: 'upload_product', component: () => import('erp/elicink/upload_product'), meta: { title: '上传产品', icon: 'cloud upload-o' }},
  //     {
  //       path: 'local-tree',
  //       component: () => import('@/views/erp/elicink/localTree'),
  //       name: 'erp.localTree',
  //       meta: { title: '产品浏览', icon: 'localTree' }
  //     },
  //     // {
  //     //   path: 'remote-tree',
  //     //   component: () => import('erp/elicink/remoteTree'),
  //     //   name: 'erp.remoteTree',
  //     //   meta: { title: '站点资源视图', icon: 'resourceView' }
  //     // },
  //     // {
  //     //   path: 'sync-site',
  //     //   component: () => import('erp/elicink/syncSite'),
  //     //   name: 'erp.syncSite',
  //     //   meta: { title: '同步站点', icon: 'syncSite' }
  //     // },
  //
  //     {
  //       path: 'titile-template',
  //       component: () => import('@/views/erp/elicink/titleTemplate'),
  //       name: 'erp.titleTemplate',
  //       meta: { title: '标题模板', icon: 'titleTemplate' }
  //     },
  //     {
  //       path: 'keyword-template',
  //       component: () => import('@/views/erp/elicink/keywordTemplate'),
  //       name: 'erp.keywordTemplate',
  //       meta: { title: '关键词模板', icon: 'keywordTemplate' }
  //     },
  //     {
  //       path: 'meta-description-template',
  //       component: () => import('@/views/erp/elicink/metaDescriptionTemplate'),
  //       name: 'erp.metaDescriptionTemplate',
  //       meta: { title: 'meta描述模板', icon: 'metaDescriptionTemplate' }
  //     },
  //     {
  //       path: 'description-template',
  //       component: () => import('@/views/erp/elicink/descriptionTemplate'),
  //       name: 'erp.descriptionTemplate',
  //       meta: { title: '短描述模板', icon: 'descriptionTemplate' }
  //     },
  //     {
  //       path: 'long-description-template',
  //       component: () => import('@/views/erp/elicink/longDescriptionTemplate'),
  //       name: 'erp.longDescriptionTemplate',
  //       meta: { title: '长描述模板', icon: 'longDescriptionTemplate' }
  //     },
  //     {
  //       path: 'product-export/',
  //       component: () => import('@/views/erp/elicink/productExport'),
  //       name: 'erp.productExport1',
  //       meta: { title: '产品导出', icon: 'productExport' }
  //     },
  //     {
  //       path: 'product-export/:src',
  //       component: () => import('@/views/erp/elicink/productExport'),
  //       name: 'erp.productExport2',
  //       hidden: true,
  //       meta: { title: '产品导出', icon: 'productExport' }
  //     },
  //     {
  //       path: 'product-query',
  //       component: () => import('@/views/erp/elicink/productQuery'),
  //       name: 'erp.productQuery',
  //       meta: { title: '产品查询', icon: 'productQuery' }
  //     }
  //   ]
  // },
  // {
  //   path: '/outcms',
  //   component: Layout,
  //   redirect: '/cms/dashboard',
  //   name: 'outcms',
  //   meta: { title: 'cms', icon: 'clipboard', roles: ['admin', 'out_writer'] },
  //   alwaysShow: true,
  //   children: [
  //     {
  //       path: 'post/edit',
  //       component: () => import('@/views/cms/editPost'),
  //       name: 'editPost',
  //       meta: { title: '编辑文章', icon: 'editPost' }
  //     },
  //     {
  //       path: 'post/edit/:post_id',
  //       component: () => import('@/views/cms/editPost'),
  //       hidden: true,
  //       name: 'editPostPut',
  //       meta: { title: '编辑文章', icon: 'editPost' }
  //     },
  //     {
  //       path: 'post/',
  //       component: () => import('@/views/cms/posts'),
  //       name: 'posts',
  //       meta: { title: '搜索内容', icon: 'crawl_keyword' }
  //     },
  //     {
  //       path: 'post/:post_id',
  //       component: () => import('@/views/cms/viewPost'),
  //       name: 'viewPost',
  //       hidden: true,
  //       meta: { title: '查看文章' }
  //     }
  //   ]
  // },
  {
    path: '/cms',
    component: Layout,
    redirect: '/cms/dashboard',
    name: 'cms',
    meta: { title: '内容管理', icon: 'clipboard', roles: ['cms_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'post/edit',
        component: () => import('@/views/cms/editPost'),
        name: 'editPost',
        meta: { title: '编辑文章', icon: 'editPost' }
      },
      {
        path: 'post/edit/:post_id',
        component: () => import('@/views/cms/editPost'),
        hidden: true,
        name: 'editPostPut',
        meta: { title: '编辑文章', icon: 'editPost' }
      },
      {
        path: 'post/',
        component: () => import('@/views/cms/posts'),
        name: 'posts',
        meta: { title: '搜索内容', icon: 'posts' }
      },
      {
        path: 'topictree/',
        component: () => import('@/views/cms/topictree'),
        name: 'topictree',
        meta: { title: '框架树', icon: 'topic-tree' }
      },
      {
        path: 'topic-framework/',
        component: () => import('@/views/cms/topic-framework'),
        name: 'topic-framework',
        meta: { title: '话题框架图', icon: 'tree' }
      },
      {
        path: 'topiclist/',
        component: () => import('@/views/cms/topiclist'),
        name: 'topiclist',
        meta: { title: '审核列表', icon: 'review-list' }
      },
      {
        path: 'topictree-article-list/',
        component: () => import('@/views/cms/topictree_article_list'),
        name: 'topictree-article-list',
        meta: { title: '文章话题列表', icon: 'article-list' }
      },
      // {
      //   path: 'postwriter/',
      //   component: () => import('@/views/cms/postwriter'),
      //   name: 'postwriter',
      //   meta: { title: 'POST作者', icon: 'posts', roles: ['cms_manager', 'admin'] }
      // },
      {
        path: 'post/:post_id',
        component: () => import('@/views/cms/viewPost'),
        name: 'viewPost',
        hidden: true,
        meta: { title: '查看文章' }
      },
      // {
      //   path: 'bestreviewhtml/',
      //   component: () => import('@/views/cms/bestreviewhtml'),
      //   name: 'cms.bestreviewhtml',
      //   meta: { title: 'review代码', icon: 'imageCollection', roles: ['cms_user', 'admin'] }
      // },
      {
        path: 'image/',
        component: () => import('@/views/cms/image'),
        name: 'cms.image',
        meta: { title: '图片管理', icon: 'image-gallery' }
      },
      {
        path: 'crmfiles/',
        component: () => import('@/views/crm/crmfiles'),
        name: 'crmfiles',
        meta: { title: '文件管理', icon: 'file-manage' }
      },
      {
        path: 'autopostgeneratetask/',
        component: () => import('@/views/cms/autopostgeneratetask'),
        name: 'autopostgeneratetask',
        meta: { title: '内容工厂', icon: 'content-factory' }
      },
      {
        path: 'wodpress/',
        component: () => import('@/views/cms/wordpress'),
        name: 'cms.wordpress',
        meta: { title: 'wp目录', icon: 'website', roles: ['cms_user', 'admin'] }
      },
      {
        path: 'shortcode/',
        component: () => import('@/views/cms/shortcode'),
        name: 'cms.shortcode',
        meta: { title: '知识库', icon: 'documentation', roles: ['cms_user', 'admin'] }
      },
      // {
      //   path: 'keywordanalysis/',
      //   component: () => import('@/views/cms/keywordanalysis'),
      //   name: 'cms.keywordanalysis',
      //   meta: { title: 'keywordanalysis', icon: 'imageCollection', roles: ['cms_manager', 'admin'] }
      // },
      {
        path: 'trafficanalytics/',
        component: () => import('@/views/cms/trafficanalytics'),
        name: 'cms.trafficanalytics',
        meta: { title: '流量统计', icon: 'chart', roles: ['cms_user', 'admin'] }
      },
      {
        path: 'thirdaccount/',
        component: () => import('@/views/cms/thirdaccount'),
        name: 'cms.thirdaccount',
        meta: { title: '三方账户', icon: 'user', roles: ['cms_user', 'admin'] }
      },
      {
        path: 'wpaccounts/',
        component: () => import('@/views/cms/wpaccounts'),
        name: 'cms.wpaccounts',
        meta: { title: '公司网站', icon: 'website', roles: ['cms_user', 'admin'] }
      }
    ]
  },
  // AI智能SOP路由将通过动态路由生成，插入到内容管理模块后面
  // 实际路由在permission.js中通过generateAISOPRoute()动态生成并插入
  {
    path: '/crm',
    component: Layout,
    redirect: '/crm/dashboard',
    name: 'B2B订单',
    meta: { title: 'B2B订单', icon: 'b2b-order', roles: ['crm_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'crmorderdashboard/',
        component: () => import('@/views/crm/crmorderdashboard'),
        name: 'dashboard',
        meta: { title: '订单总结', icon: 'order-summary' }
      },
      {
        path: 'crmorder/',
        component: () => import('@/views/crm/crmorder'),
        name: '询盘&订单',
        meta: { title: '询盘&订单', icon: 'inquiry-order  ' }
      },
      {
        path: 'productionorder/',
        component: () => import('@/views/crm/productionOrderList'),
        name: '生产单',
        meta: { title: '生产单', icon: 'product' }
      },
      {
        path: 'crmorderpurchase/',
        component: () => import('@/views/crm/crmorderpurchase'),
        name: '跟单列表',
        meta: { title: '跟单列表', icon: 'order-follow', roles: ['crm_order_follower', 'admin'] }
      },
      {
        path: 'crmticket/',
        component: () => import('@/views/crm/crmticket'),
        name: '内部工单',
        meta: { title: '内部工单', icon: 'inquiry-order' }
      },
      {
        path: 'crmorderfollowplan/',
        component: () => import('@/views/crm/crmorderfollowplan'),
        name: '提醒计划',
        meta: { title: '提醒计划', icon: 'alarm-clock', roles: ['crm_manager', 'admin'] }
      },
      {
        path: 'crmordercommission/',
        component: () => import('@/views/crm/crmordercommission'),
        name: '订单提成',
        meta: { title: '订单提成', icon: 'finance' }
      },
      {
        path: 'crmfinance/',
        component: () => import('@/views/crm/crmfinance'),
        name: '订单财务',
        meta: { title: '订单财务', icon: 'finance', roles: ['finance_user', 'admin'] }
      },
      {
        path: 'crmcreateorder/',
        component: () => import('@/views/crm/crmcreateorder'),
        name: '新增订单',
        meta: { title: '新增订单', icon: 'create-order' }
      },
      {
        path: 'crmfactoryinquery/',
        component: () => import('@/views/crm/crmfactoryinquery'),
        name: '工厂询价单',
        meta: { title: '工厂询价单', icon: 'factory-inquiry' }
      },
      {
        path: 'settlement-tracking/',
        component: () => import('@/views/crm/settlement-tracking'),
        name: '结算信息跟踪',
        meta: { title: '结算信息跟踪', icon: 'money' }
      }
    ]
  },
  // 财务管理
  {
    path: '/finance',
    component: Layout,
    redirect: '/finance/payables',
    name: 'Finance',
    meta: { title: '财务管理', icon: 'money', roles: ['finance_user', 'crm_manager', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'payables',
        component: () => import('@/views/crm/finance/PayableList'),
        name: 'FinancePayables',
        meta: { title: '应付账单', icon: 'list' }
      }
    ]
  },
  {
    path: '/crm',
    component: Layout,
    redirect: '/crm/dashboard',
    name: '客户',
    meta: { title: '客户管理', icon: 'customer', roles: ['crm_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'crmcustomer/',
        component: () => import('@/views/crm/crmcustomer'),
        name: '客户',
        meta: { title: '客户池', icon: 'customer-pool' }
      },
      {
        path: 'crmcustomercategory/',
        component: () => import('@/views/crm/crmcustomercategory'),
        name: '客户分类',
        meta: { title: '客户分类', icon: 'customer-category' }
      },
      {
        path: 'crmcustomerprofilemanage/',
        component: () => import('@/views/crm/crmcustomerprofilemanage'),
        name: '客户画像',
        meta: { title: '客户画像', icon: 'user-profile' }
      },
      {
        path: 'crmedmmail/',
        component: () => import('@/views/crm/crmedmmail'),
        name: '邮件营销',
        meta: { title: '邮件营销', icon: 'email-marketing' }
      }
    ]
  },
  {
    path: '/crm',
    component: Layout,
    redirect: '/crm/dashboard',
    name: '沟通',
    meta: { title: '沟通', icon: 'communication', roles: ['crm_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'crmmailbox/',
        component: () => import('@/views/crm/crmmailbox'),
        name: '收件箱',
        meta: { title: '收件箱', icon: 'inbox' }
      },
      {
        path: 'crmsendmailbox/',
        component: () => import('@/views/crm/crmsendmailbox'),
        name: '发送箱',
        meta: { title: '发送箱', icon: 'outbox' }
      },
      {
        path: 'crmmaildraft/',
        component: () => import('@/views/crm/crmmaildraft'),
        name: '草稿箱',
        meta: { title: '草稿箱', icon: 'draft' }
      },
      {
        path: 'whatsapp/',
        component: () => import('@/views/crm/whatsapp'),
        name: 'whatsapp',
        meta: { title: 'whatsapp', icon: 'whatsapp' }
      },
      {
        path: 'whatsappaccount/',
        component: () => import('@/views/crm/whatsappaccount'),
        name: 'whatsappaccount',
        meta: { title: 'whatsapp账号', icon: 'whatsapp' }
      }
      // {
      //   path: 'whatsapplive/',
      //   component: () => import('@/views/crm/whatsapplive'),
      //   name: 'whatsapplive',
      //   meta: { title: 'whatsapplive', icon: 'spider' }
      // },
      // {
      //   path: 'whatsapp_task/',
      //   component: () => import('@/views/crm/whatsapp_task'),
      //   name: 'whatsapp_task',
      //   meta: { title: 'whatsapptask', icon: 'spider' }
      // }
    ]
  },
  {
    path: '/crm',
    component: Layout,
    redirect: '/crm/dashboard',
    name: 'B2B产品',
    meta: { title: 'B2B产品', icon: 'product', roles: ['crm_product', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'crmsupplierproduct/',
        component: () => import('@/views/crm/crmsupplierproduct'),
        name: 'crmsupplierproduct',
        meta: { title: '供应商产品', icon: 'supplier' }
      },
      {
        path: 'crmquote/',
        component: () => import('@/views/crm/crmquote'),
        name: '目录册',
        meta: { title: '目录册', icon: 'catalog' }
      },
      {
        path: 'crmallquoteproducts/',
        component: () => import('@/views/crm/crmallquoteproducts'),
        name: '目录册产品',
        meta: { title: '目录册产品', icon: 'product' }
      },
      {
        path: 'crmsupplier/',
        component: () => import('@/views/crm/crmsupplier'),
        name: '供应商',
        meta: { title: '供应商', icon: 'supplier', roles: ['crm_order_follower', 'admin'] }
      }
    ]
  },
  {
    path: '/businessMaterial',
    component: Layout,
    redirect: '/businessMaterial/index',
    name: '素材管理',
    meta: { title: '素材管理', icon: 'documentation', roles: ['crm_user', 'admin'] },
    children: [
      {
        path: 'index',
        component: () => import('@/views/businessMaterial/index'),
        name: 'BusinessMaterial',
        meta: { title: '业务素材', icon: 'documentation' }
      }
    ]
  },
  {
    path: '/static_web',
    component: Layout,
    redirect: '/static_web/ai-create',
    name: 'static_web',
    meta: { title: 'AI建站', icon: 'website', roles: ['static_site_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'ai-create',
        component: () => import('@/views/static_web/ai-create'),
        name: 'static_web.ai_create',
        meta: { title: 'AI创建网站', icon: 'magic-stick' }
      },
      {
        path: 'website',
        component: () => import('@/views/static_web/website'),
        name: 'static_web.website',
        meta: { title: '网站管理', icon: 'website' }
      },
      {
        path: 'pages',
        component: () => import('@/views/static_web/pages'),
        name: 'static_web.pages',
        meta: { title: '页面管理', icon: 'documentation' }
      },
      {
        path: 'templates',
        component: () => import('@/views/static_web/templates'),
        name: 'static_web.templates',
        meta: { title: '模板管理', icon: 'component' }
      },
      {
        path: 'batch-blog',
        component: () => import('@/views/static_web/batch-blog'),
        name: 'static_web.batch_blog',
        meta: { title: '批量创建博客', icon: 'documentation' }
      },
      {
        path: 'page-editor/:id?',
        component: () => import('@/views/static_web/page-editor'),
        name: 'static_web.page_editor',
        meta: { title: '页面编辑器', icon: 'edit' },
        hidden: true
      },
      {
        path: 'form-submissions',
        component: () => import('@/views/static_web/form-submissions'),
        name: 'static_web.form_submissions',
        meta: { title: '表单询盘管理', icon: 'form' }
      },
      {
        path: 'cloud-images',
        component: () => import('@/views/static_web/cloud-images'),
        name: 'static_web.cloud_images',
        meta: { title: '云端图片管理', icon: 'cloud-image' }
      },
      {
        path: 'site-directories',
        component: () => import('@/views/static_web/site-directories'),
        name: 'static_web.site_directories',
        meta: { title: '网站目录管理', icon: 'folder' }
      },
      {
        path: 'cloudflare-cfg',
        component: () => import('@/views/static_web/cloudflare-cfg'),
        name: 'static_web.cloudflare_cfg',
        meta: { title: 'Cloudflare 配置', icon: 'setting' }
      },
      {
        path: 'github-cfg',
        component: () => import('@/views/static_web/github-config'),
        name: 'static_web.github_cfg',
        meta: { title: 'GitHub 配置', icon: 'github' }
      }
    ]
  },
  {
    path: '/chatbot',
    component: Layout,
    redirect: '/chatbot/dashboard',
    name: 'AI销售机器人',
    meta: { title: 'AI销售机器人', icon: 'chatbot', roles: ['chatbot_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'vector-knowledge-base/',
        component: () => import('@/views/chatbot/vector-knowledge-base'),
        name: '向量知识库',
        meta: { title: '向量知识库', icon: 'vector-knowledge-base' }
      },
      {
        path: 'waha-session/',
        component: () => import('@/views/chatbot/waha-session'),
        name: 'WA账号管理',
        meta: { title: 'WA账号管理', icon: 'waha-session' }
      },
      {
        path: 'chatbot-config/',
        component: () => import('@/views/chatbot/chatbot-config'),
        name: '聊天机器人配置',
        meta: { title: '聊天机器人配置', icon: 'chatbot-config' }
      },
      {
        path: 'sendmessage/',
        component: () => import('@/views/chatbot/sendmessage'),
        name: '发送消息',
        meta: { title: '发送消息', icon: 'message' }
      }
    ]
  },
  {
    path: '/landingpage',
    component: Layout,
    redirect: '/landingpage/dashboard',
    name: '落地页',
    meta: { title: '落地页', icon: 'landing-page', roles: ['landing_page_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'landingpage/',
        component: () => import('@/views/landingpage/landingpage'),
        name: '落地页模板',
        meta: { title: '落地页模板', icon: 'landing-page-template' }
      },
      {
        path: 'lppage/',
        component: () => import('@/views/landingpage/lppage'),
        name: '落地页',
        meta: { title: '落地页', icon: 'landing-page-edit' }
      },
      {
        path: 'editlandingpage/',
        component: () => import('@/views/landingpage/editlandingpage'),
        name: 'editlandingpage',
        hidden: true,
        meta: { title: '编辑落地页', icon: 'landing-page-edit' }
      }
    ]
  },
  {
    path: '/leads',
    component: Layout,
    redirect: '/leads/dashboard',
    name: '数据清洗',
    meta: { title: '数据清洗', icon: 'data-clean', roles: ['tablestore_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'datamining/',
        component: () => import('@/views/leads/datamining'),
        name: '客户线索',
        meta: { title: '客户线索数据挖掘', icon: 'data-mining', roles: ['tablestore_user', 'admin'] }
      },
      {
        path: 'dataminingcharts/',
        component: () => import('@/views/leads/dataminingcharts'),
        name: '数据统计',
        meta: { title: '数据统计', icon: 'chart', roles: ['tablestore_user', 'admin'] }
      },
      {
        path: 'lkddata/',
        component: () => import('@/views/leads/lkddata'),
        name: '领英用户',
        meta: { title: '领英用户查询', icon: 'user', roles: ['tablestore_user', 'admin'] }
      },
      {
        path: 'whatsapp/',
        component: () => import('@/views/leads/whatsapp'),
        name: 'whatsapp',
        meta: { title: 'whatsapp', icon: 'whatsapp', roles: ['whatsapp_manager', 'admin'] }
      },
      {
        path: 'ioftdata/',
        component: () => import('@/views/leads/ioftdata'),
        name: 'ioftdata',
        meta: { title: 'ioftdata', icon: 'data-clean', roles: ['tablestore_user', 'admin'] }
      }
    ]
  },
  // {
  //   path: '/static-site',
  //   component: Layout,
  //   redirect: '/static-site/dashboard',
  //   name: '静态网站',
  //   meta: { title: '静态网站', icon: 'static-website' },
  //   alwaysShow: true,
  //   children: [
  //     {
  //       path: 'static-site/',
  //       component: () => import('@/views/spider/static_site_index'),
  //       name: '网站管理',
  //       meta: { title: '网站管理', icon: 'website-manage' }
  //     },
  //     {
  //       path: 'html-template/',
  //       component: () => import('@/views/spider/html_template_index'),
  //       name: '模板管理',
  //       meta: { title: '模板管理', icon: 'template-manage' },
  //       hidden: true
  //     },
  //     {
  //       path: 'static-site-menu/',
  //       component: () => import('@/views/spider/static_site_menu'),
  //       name: '菜单管理',
  //       meta: { title: '菜单管理', icon: 'menu-manage' },
  //       hidden: true
  //     },
  //     {
  //       path: 'menu-builder/',
  //       component: () => import('@/views/spider/menu_builder'),
  //       name: '菜单构建器',
  //       meta: { title: '菜单构建器', icon: 'menu-builder' },
  //       hidden: true
  //     },
  //     {
  //       path: 'static-site-category/',
  //       component: () => import('@/views/spider/static_site_category'),
  //       name: '分类管理',
  //       meta: { title: '分类管理', icon: 'site-category' }
  //     },
  //     {
  //       path: 'category-preview-editor/',
  //       component: () => import('@/views/spider/category_preview_editor'),
  //       name: '分类预览编辑',
  //       meta: { title: '分类预览编辑', icon: 'code-editor' },
  //       hidden: true
  //     },
  //     {
  //       path: 'static-site-page/',
  //       component: () => import('@/views/spider/static_site_page'),
  //       name: '页面管理',
  //       meta: { title: '页面管理', icon: 'site-page' }
  //     }
  //   ]
  // },
  {
    path: '/crm',
    component: Layout,
    redirect: '/crm/dashboard',
    name: '企业管理',
    meta: { title: '企业管理', icon: 'company', roles: ['crm_manager', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'crmmanage/',
        component: () => import('@/views/crm/crmmanage'),
        name: '常规配置',
        meta: { title: '常规配置', icon: 'settings' }
      },
      {
        path: 'crmmailserverconfig/',
        component: () => import('@/views/crm/crmmailserverconfig'),
        name: '邮箱账号',
        meta: { title: '邮箱账号', icon: 'mail-account' }
      },
      {
        path: 'crmorderstate/',
        component: () => import('@/views/crm/crmorderstate'),
        name: '状态管理',
        meta: { title: '状态管理', icon: 'status-management' }
      },
      {
        path: 'crmorderstatesop/',
        component: () => import('@/views/crm/crmorderstatesop'),
        name: 'SOP配置',
        meta: { title: 'SOP任务目标', icon: 'sop-target' }
      },
      {
        path: 'crmstaff/',
        component: () => import('@/views/crm/crmstaff'),
        name: 'crmstaff',
        meta: { title: '员工管理', icon: 'employee' }
      },
      {
        path: 'crmexchangerate/',
        component: () => import('@/views/crm/crmexchangerate'),
        name: 'crmexchangerate',
        meta: { title: '汇率管理', icon: 'money' }
      },
      {
        path: 'schedule',
        component: () => import('@/views/erp/elicink/schedule'),
        name: 'schedule',
        meta: { title: '企业日程安排', icon: 'schedule', roles: ['seo_service_manager', 'admin'] }
      }
    ]
  },
  // {
  //   path: '/autoblog',
  //   component: Layout,
  //   redirect: '/cms/dashboard',
  //   name: 'autoblog',
  //   meta: { title: '自动博客', icon: 'clipboard', roles: ['cms_user', 'admin'] },
  //   alwaysShow: true,
  //   children: [
  //     {
  //       path: 'blogtemplate/',
  //       component: () => import('@/views/cms/blogtemplate'),
  //       name: '博客模板',
  //       meta: { title: '博客模板', icon: 'spider' }
  //     },
  //     {
  //       path: 'blogparagraphtemplate/',
  //       component: () => import('@/views/cms/blogparagraphtemplate'),
  //       name: '段落模板',
  //       meta: { title: '段落模板', icon: 'spider' }
  //     },
  //     {
  //       path: 'blogspider/',
  //       component: () => import('@/views/cms/blogspider'),
  //       name: '博客爬虫',
  //       meta: { title: '博客爬虫', icon: 'spider' }
  //     },
  //     {
  //       path: 'crawlkeyword/',
  //       component: () => import('@/views/cms/crawlkeyword'),
  //       name: '爬取关键词',
  //       meta: { title: '爬取关键词', icon: 'keywords' }
  //     },
  //     {
  //       path: 'autoblogpost/',
  //       component: () => import('@/views/cms/autoblogpost'),
  //       name: '最近发帖',
  //       meta: { title: 'amz最近发帖', icon: 'spider' }
  //     },
  //     {
  //       path: 'keywordpool/',
  //       component: () => import('@/views/cms/keywordpool'),
  //       name: '词库',
  //       meta: { title: '词库', icon: 'keywords' }
  //     },
  //     {
  //       path: 'tablestore/',
  //       component: () => import('@/views/tablestore/tablestore'),
  //       name: '表格存储',
  //       meta: { title: '表格存储', icon: 'keywords' }
  //     },
  //     {
  //       path: 'amazonaffiliateaccount/',
  //       component: () => import('@/views/cms/amazonaffiliateaccount'),
  //       name: 'cms.amazonaffiliateaccount',
  //       meta: { title: 'amz佣金账户', icon: 'imageCollection', roles: ['cms_manager', 'admin'] }
  //     }
  //   ]
  // },
  {
    path: '/prestashop',
    component: Layout,
    redirect: '/prestashop/dashboard',
    name: 'prestashop',
    meta: { title: '站点&服务器', icon: 'server', roles: ['server_manager'] },
    alwaysShow: true,
    children: [
      {
        path: 'prestashop/category',
        component: () => import('@/views/prestashop/element/category'),
        name: 'prestashop.category',
        meta: { title: '目录管理', icon: 'resourceManage' }
      },
      {
        path: 'prestashop/prestashopstats',
        component: () => import('@/views/prestashop/prestashopstats'),
        name: 'prestashop.stats',
        meta: { title: '站点管理', icon: 'website' }
      },
      // {
      //   path: 'prestashop/serverstatus',
      //   component: () => import('@/views/prestashop/serverstatus'),
      //   name: 'prestashop.serverstatus',
      //   meta: { title: '服务器状态', icon: 'website' }
      // },
      {
        path: 'prestashop/serverstatuslive',
        component: () => import('@/views/prestashop/serverstatuslive'),
        name: 'prestashop.serverstatuslive',
        meta: { title: '服务器', icon: 'website' }
      },
      {
        path: 'vmware/vmwareclient',
        component: () => import('@/views/vmware/vmwareclient'),
        name: 'vmware.vmwareclient',
        meta: { title: 'vmware虚拟机', icon: 'website' }
      },
      {
        path: 'vmware/vmwareserver',
        component: () => import('@/views/vmware/vmwareserver'),
        name: 'vmware.vmwareserver',
        meta: { title: '虚拟机服务器', icon: 'website' }
      },
      {
        path: 'prestashop/serverconnections',
        component: () => import('@/views/prestashop/serverconnections'),
        name: 'prestashop.serverconnections',
        meta: { title: '访问IP', icon: 'website' }
      }
    ]
  },
  {
    path: '/manage',
    component: Layout,
    redirect: '/manage/dashboard',
    name: 'manage',
    meta: { title: '系统管理', icon: 'settings', roles: ['admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'project-manage',
        component: () => import('@/views/erp/elicink/projectManage'),
        name: 'epr.projectManage',
        meta: { title: '公司管理', icon: 'projectManage' }
      },
      // {
      //   path: 'crawlsitemanage',
      //   component: () => import('@/views/crawl/crawlSiteManage'),
      //   name: 'crawl.siteManage',
      //   meta: { title: '爬取站点管理', icon: 'siteManage' }
      // },
      {
        path: 'projectuser',
        component: () => import('@/views/manage/projectuser'),
        name: 'manage.projectuser',
        meta: { title: '公司 用户', icon: 'projectuser' }
      },
      {
        path: 'usergroup',
        component: () => import('@/views/manage/usergroup'),
        name: 'manage.usergroup',
        meta: { title: '用户权限', icon: 'usergroup' }
      },
      {
        path: 'promptsmanage',
        component: () => import('@/views/manage/promptsmanage'),
        name: 'promptsmanage',
        meta: { title: 'prompts管理', icon: 'prompts' }
      },
      {
        path: 'writingstyle',
        component: () => import('@/views/cms/writingstyle'),
        name: 'manage.writingstyle',
        meta: { title: '写作风格', icon: 'edit' }
      }
    ]
  },
  {
    path: '/spider',
    component: Layout,
    redirect: '/spider/index',
    name: 'spider',
    meta: { title: '内容挖掘', icon: 'google', roles: ['spider_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'top_content/index',
        component: () => import('@/views/spider/top_content_index'),
        name: 'top_content.index',
        meta: { title: 'Top 内容搜索', icon: 'top' }
      },
      {
        path: 'top_content/detail/:seed_id',
        component: () => import('@/views/spider/top_content_detail'),
        name: 'top_content.detail',
        meta: { title: 'Top 详情' },
        hidden: true
      },
      {
        path: 'top_content/rule',
        component: () => import('@/views/spider/top_content_rule'),
        name: 'top_content.rule',
        meta: { title: 'Top 规则' },
        hidden: true
      }
    ]
  },
  {
    path: '/eco',
    component: Layout,
    redirect: '/eco/dashboard',
    name: 'eco',
    meta: { title: '工具', icon: 'tools', noCache: false, roles: ['erp_user'] },
    alwaysShow: false,
    children: [
      {
        path: 'ecommonceshopify',
        component: () => import('@/views/eco/ecommonceshopify'),
        name: 'eco.ecommonceshopify',
        meta: { title: '网站库', icon: 'resourceManage', noCache: false }
      },
      {
        path: 'ecobestseller',
        component: () => import('@/views/eco/ecobestseller'),
        name: 'eco.bestseller',
        meta: { title: 'Best Seller', icon: 'resourceManage', noCache: false }
      },
      // {
      //   path: 'stockhunter',
      //   component: () => import('@/views/eco/stockhunterurl'),
      //   name: 'eco.stockhunter',
      //   meta: { title: '订单监控', icon: 'resourceManage', noCache: false }
      // },
      {
        path: 'imagef',
        component: () => import('@/views/eco/image_combination'),
        name: 'eco.imagef',
        meta: { title: '图片合并', icon: 'resourceManage', noCache: false }
      },
      // {
      //   path: 'semrush/search',
      //   component: () => import('@/views/eco/semrush/search'),
      //   name: 'eco.semrush.search',
      //   meta: { title: '流量搜索', icon: 'resourceManage', noCache: false }
      // },
      {
        path: 'serp',
        component: () => import('@/views/eco/serp/'),
        name: 'eco.serp',
        meta: { title: 'SERP', icon: 'resourceManage', noCache: false }
      },
      {
        path: 'search/index',
        component: () => import('@/views/eco/search/index'),
        name: 'eco.search.index',
        meta: { title: '分类搜索', icon: 'resourceManage', noCache: false }
      },
      {
        path: 'search/batchsearch',
        component: () => import('@/views/eco/search/batchsearch'),
        name: 'eco.search.batchsearch',
        meta: { title: '批量搜索', icon: 'resourceManage', noCache: false }
      },
      // {
      //   path: 'search/searchimport',
      //   component: () => import('@/views/eco/search/searchimport'),
      //   name: 'eco.search.searchimport',
      //   meta: { title: '导入关键词', icon: 'resourceManage', noCache: false }
      // },
      {
        path: 'proxy/index',
        component: () => import('@/views/eco/proxy/index'),
        name: 'eco.proxy.index',
        meta: { title: '代理管理', icon: 'resourceManage', noCache: false }
      }
    ]
  },
  {
    path: '/crawl',
    component: Layout,
    redirect: '/crawl/dashboard',
    name: 'crawl',
    meta: { title: '抓取产品', icon: 'paper-plane', roles: ['crawl_user', 'admin', 'product_customer'] },
    alwaysShow: true,
    children: [
      {
        path: 'crawl_index',
        component: () => import('@/views/crawl/index'),
        name: 'crawl_index',
        meta: { title: '快捷导航', icon: 'dashboard', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'searchkey',
        component: () => import('@/views/crawl/searchkey'),
        name: 'searchkey',
        meta: { title: '关键词抓取', icon: 'crawl_keyword', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'crawlurl',
        component: () => import('@/views/crawl/crawlurl'),
        name: 'crawlurl',
        meta: { title: 'URL抓取', icon: 'url', roles: ['crawl_user', 'admin', 'product_customer'] }
      },
      {
        path: 'ecobestseller',
        component: () => import('@/views/eco/ecobestseller'),
        name: 'eco.bestseller',
        meta: { title: 'Best Seller', icon: 'resourceManage', noCache: false, roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'prestashop/prestashopstats',
        component: () => import('@/views/prestashop/prestashopstats'),
        name: 'prestashop.stats',
        meta: { title: '站点管理', icon: 'website', roles: ['product_customer'] }
      },
      {
        path: 'seedplatformcompetitiveproduct',
        component: () => import('@/views/crawl/seedplatformcompetitiveproduct'),
        name: 'seedplatformcompetitiveproduct',
        meta: { title: '竞品列表', icon: 'url', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'removebgimages',
        component: () => import('@/views/erp/elicink/removebgimages'),
        name: 'removebgimages',
        meta: { title: '去水印图片列表', icon: 'url', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'deletedproductsbykeyword',
        component: () => import('@/views/crawl/deletedproductsbykeyword'),
        name: '违禁产品',
        meta: { title: '违禁产品', icon: 'url', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'shoppingproductdelete',
        component: () => import('@/views/crawl/shoppingproductdelete'),
        name: '产品操作记录',
        meta: { title: '产品操作记录', icon: 'url', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'productoptimization',
        component: () => import('@/views/crawl/productoptimization'),
        name: '等待优化产品',
        meta: { title: '优化产品', icon: 'url', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'PsProductDeleteTask',
        component: () => import('@/views/crawl/PsProductDeleteTask'),
        name: '批量删除产品',
        meta: { title: '批量删除产品', icon: 'url', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'crawl_category',
        component: () => import('@/views/crawl/category'),
        name: 'crawl_category',
        meta: { title: '目录抓取', icon: 'crawl_category', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'feed',
        component: () => import('@/views/feed/feed'),
        name: 'feed',
        meta: { title: 'feed管理', icon: 'feed', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'gtinmap',
        component: () => import('@/views/erp/elicink/gtinmap'),
        name: 'gtin',
        meta: { title: 'gtin管理', icon: 'feed', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'gmcinvalidkeywords',
        component: () => import('@/views/orders/gmcinvalidkeywords'),
        name: 'GMC否定词',
        meta: { title: 'GMC否定词', icon: 'feed', roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'cookies/index',
        component: () => import('@/views/eco/cookies/index'),
        name: 'eco.cookies.index',
        meta: { title: 'Cookies', icon: 'resourceManage', noCache: false, roles: ['crawl_user', 'admin'] }
      },
      {
        path: 'countup',
        component: () => import('@/views/crawl/countup'),
        name: 'countup',
        meta: { title: '产品总数', icon: 'countup', roles: ['crawl_user', 'admin'] }
      },
      // {
      //   path: 'crawl_compare',
      //   component: () => import('@/views/crawl/compare'),
      //   name: 'crawl_compare',
      //   meta: { title: '目录对比', icon: 'crawl_compare' }
      // },
      // {
      //   path: 'compare_record',
      //   component: () => import('@/views/crawl/compareRecord'),
      //   name: 'compare_record',
      //   meta: { title: '对比记录', icon: 'compare_record' }
      // },
      {
        path: 'crawlviewproduct/',
        component: () => import('@/views/crawl/viewproduct'),
        name: 'crawlviewproduct',
        meta: { title: '产品浏览', icon: 'crawlviewproduct', roles: ['crawl_user', 'admin'] }
      }
      // {
      //   path: 'batchprocess/:b_id',
      //   component: () => import('@/views/crawl/batchprocess'),
      //   name: 'batchprocess',
      //   meta: { title: '产品处理', icon: 'batchprocess' },
      //   hidden: true
      // },
      // {
      //   path: 'crawlproduct',
      //   component: () => import('@/views/crawl/crawlProduct'),
      //   name: 'crawlproduct',
      //   meta: { title: 'URL抓取' }
      // },
      // {
      //   path: 'batchimport',
      //   component: () => import('@/views/crawl/batchimport'),
      //   name: 'batchimport',
      //   meta: { title: '批量处理', icon: 'batchimport' }
      // },
      // {
      //   path: 'crawlweb',
      //   component: () => import('@/views/crawl/web'),
      //   name: 'cralwweb',
      //   meta: { title: '图片搜索', icon: 'crawlweb' }
      // }
    ]
  },
  // {
  //   path: '/shopee',
  //   component: Layout,
  //   redirect: '/shopee/dashboard',
  //   name: 'shopee',
  //   meta: { title: '虾皮', icon: 'paper-plane', roles: ['shopee_user', 'admin'] },
  //   alwaysShow: true,
  //   children: [
  //     {
  //       path: 'adsproduct',
  //       component: () => import('@/views/shopee/shopeeadsproduct'),
  //       name: 'shopeeadsproduct',
  //       meta: { title: '广告产品', icon: 'crawl_keyword' }
  //     },
  //     {
  //       path: 'adsproduct7days',
  //       component: () => import('@/views/shopee/shopeeadsproduct7days'),
  //       name: 'shopeeadsproduct7days',
  //       meta: { title: '7日效果', icon: 'crawl_keyword' }
  //     },
  //     {
  //       path: 'productmonitor',
  //       component: () => import('@/views/shopee/shopeeproductmonitor'),
  //       name: 'shopeeproductmonitor',
  //       meta: { title: '销量监控', icon: 'crawl_keyword' }
  //     },
  //     {
  //       path: 'account',
  //       component: () => import('@/views/shopee/shopeeaccount'),
  //       name: 'shopeeaccount',
  //       meta: { title: '虾皮账号', icon: 'crawl_keyword' }
  //     }
  //   ]
  // },
  {
    path: '/广告营销',
    component: Layout,
    redirect: '/orders/dashboard',
    name: 'orders',
    meta: { title: 'orders', icon: 'order', roles: ['orders_user'] },
    alwaysShow: true,
    children: [
      {
        path: 'orders',
        component: () => import('@/views/orders/orders'),
        name: 'orders.orders',
        meta: { title: '订单查询', icon: 'orders' }
      },
      {
        path: 'weborderstatistics',
        component: () => import('@/views/orders/weborderstatistics'),
        name: 'orders.weborderstatistics',
        meta: { title: '销售统计', icon: 'sales' }
      },
      {
        path: 'budget',
        component: () => import('@/views/orders/googleadsbudget'),
        name: 'orders.budget',
        meta: { title: '广告预算', icon: 'sales' }
      },
      {
        path: 'googleadsreportsearchterm',
        component: () => import('@/views/orders/googleadsreportsearchterm'),
        name: 'orders.googleadsreportsearchterm',
        meta: { title: '搜索词', icon: 'files' }
      },
      {
        path: 'banedproducts',
        component: () => import('@/views/orders/banedproducts'),
        name: 'orders.banedproducts',
        meta: { title: 'GMC拒登产品', icon: 'files' }
      },
      {
        path: 'trackings',
        component: () => import('@/views/orders/trackings'),
        name: 'orders.trackings',
        meta: { title: '跟踪单号', icon: 'orders' }
      },
      {
        path: 'googleadsreportimport',
        component: () => import('@/views/orders/googleadsreportimport'),
        name: 'orders.googleadsreportimport',
        meta: { title: '报告分析', icon: 'files' }
      },
      {
        path: 'shopping_cart',
        component: () => import('@/views/orders/shopping_cart'),
        name: 'orders.shopping_cart',
        meta: { title: 'cart', icon: 'files' }
      },
      {
        path: 'hotproducts',
        component: () => import('@/views/orders/hotproducts'),
        name: 'orders.hotproducts',
        meta: { title: '热销产品', icon: 'sales', roles: ['orders_manager', 'admin'] }
      },
      {
        path: 'googleadsaccount',
        component: () => import('@/views/orders/googleadsaccount'),
        name: 'orders.googleadsaccount',
        meta: { title: '广告账户', icon: 'message' }
      }
    ]
  },
  {
    path: '/psmsg',
    component: Layout,
    redirect: '/psmsg/message',
    name: 'psmsg',
    meta: { title: '客服', icon: 'message', roles: ['message_user', 'admin'] },
    alwaysShow: true,
    children: [
      {
        path: 'message',
        component: () => import('@/views/psmsg/message'),
        name: 'psmsgmessage',
        meta: { title: '站内信', icon: 'message' }
      },
      {
        path: 'message-mobile',
        component: () => import('@/views/psmsg/message_mobile'),
        name: 'psmsgmessagemobile',
        meta: { title: '站内信(手机)', icon: 'message' }
      },
      {
        path: 'reply-template',
        component: () => import('@/views/psmsg/replyTemplate'),
        name: 'psmsg.replyTemplate',
        meta: { title: '站内信模版', icon: 'replyTemplate' }
      },
      {
        path: 'customer-thread/:id',
        component: () => import('@/views/psmsg/customerThread'),
        name: 'psmsg.customerThread',
        meta: { title: '消息过程', icon: 'customerThread' },
        hidden: true
      },
      {
        path: 'emailbox',
        component: () => import('@/views/email/emailbox'),
        name: 'emailbox',
        meta: { title: '收件箱', icon: 'email' }
      },
      {
        path: 'emailreply',
        component: () => import('@/views/email/emailreply'),
        name: 'emailreply',
        meta: { title: '回复邮件', icon: 'email' }
      },
      {
        path: 'paypaldispute',
        component: () => import('@/views/email/paypaldispute'),
        name: 'paypaldispute',
        meta: { title: 'paypal投诉', icon: 'email' }
      },
      {
        path: 'paypalcase',
        component: () => import('@/views/email/paypalcase'),
        name: 'paypalcase',
        meta: { title: 'paypal事件', icon: 'email' }
      },
      {
        path: 'adsrecharge',
        component: () => import('@/views/orders/adsrecharge'),
        name: 'adsrecharge',
        meta: { title: '充值记录', icon: 'sales' }
      },
      {
        path: 'emailaccount',
        component: () => import('@/views/email/emailaccount'),
        name: 'emailaccount',
        meta: { title: '邮箱账号', icon: 'email' }
      },
      {
        path: 'gmail',
        component: () => import('@/views/orders/gmailaccount'),
        name: 'orders.gmailaccount',
        meta: { title: 'gmail', icon: 'message' }
      },
      {
        path: 'emailtemplate',
        component: () => import('@/views/email/emailTemplate'),
        name: 'emailtemplate',
        meta: { title: '邮件模板', icon: 'resourceManage' }
      },
      {
        path: 'emailtemplatebind',
        component: () => import('@/views/email/emailtemplatebind'),
        name: 'emailtemplatebind',
        meta: { title: '模板绑定', icon: 'resourceManage' }
      }
    ]
  },
  // 编辑源码（全屏页面，不使用Layout）
  {
    path: '/media-assets/:id',
    component: () => import('@/views/static_web/media-assets'),
    name: 'MediaAssets',
    meta: { title: '编辑源码' },
    hidden: true
  },
  // GrapeJS 可视化编辑器（全屏页面，不使用Layout）
  {
    path: '/grapesjs-editor/:id',
    component: () => import('@/views/static_web/grapesjs-editor'),
    name: 'GrapesJSEditor',
    meta: { title: '可视化编辑' },
    hidden: true
  },
  // 网站配置管理
  {
    path: '/website-config/:id',
    component: () => import('@/views/static_web/website-config'),
    name: 'WebsiteConfig',
    meta: { title: '网站配置' },
    hidden: true
  },
  { path: '*', redirect: '/404', hidden: true }
]
